{include file='header.tpl'}

<h1 class="page-header">Cadastro de Menu</h1>
<form class="form-horizontal" id="menu" name="menu">

    <ul class="form-group panel panel-group list-unstyled">
        <li class="form-control-static">
            <label class="form-control-static col-lg-pull-12" for="id_menu_pai">Menu Pai</label><br />
            {$select}
        </li>
        <li class="form-control-static">
            <label class="form-control-static col-lg-pull-12" for="menu">Menu</label><br />
            <input id="menu" name="menu" placeholder="menu" class="input-sm  col-lg-12" type="text" maxlength="255" valida='sim,,Menu' value="{$dados.menu}">
        </li>
        <li class="form-control-static">
            <label class="form-control-static col-lg-pull-12" for="menu_en">Menu Inglês</label><br />
            <input id="menu_en" name="menu_en" placeholder="Menu Inglês" class="input-sm  col-lg-12" type="text" maxlength="255" value="{$dados.menu_en}">
        </li>

        <li class="form-control-static">
            <label class="form-control-static col-lg-pull-12" for="menu_es">Menu Espanhol</label><br />
            <input id="menu_es" name="menu_es" placeholder="Menu Espanhol" class="input-sm  col-lg-12" type="text" maxlength="255" value="{$dados.menu_es}">
        </li>        
        <li class="control-label">
            {if {$dados.id_menu}}
                <input type='hidden' name="id_menu" id="id_menu" value="{$dados.id_menu}" />
                <input type="button" value="Salvar" id="salvar" name="salvar" class="btn btn-success" onclick="EditarPadrao(this, 'menu', '{$id_menu}', 'lista_menu.php');">
            {else}
                <input type='hidden' name="id_usuarios" id="id_usuarios" value="{$id_usuarios}" />
                <input type="button" value="Salvar" id="salvar" name="salvar" class="btn btn-success" onclick="InserirPadrao(this, 'menu', 'lista_menu.php');">
            {/if}
            <span id='aguardando'></span>
        </li>
    </ul>
</form>
{literal}
    <script type="text/javascript">
        $(document).ready(function() {
            $(".accordion").accordion("option", "active", 3);
        });
    </script>
{/literal}
{include file='footer.tpl'}